<div id="user_right_box" class="right curren"> 
  <!--{if $login.status=='1'}-->
  <div class="dynamic_user">
    <dl>
      <dt><span><a href="<!--{$login.info.homeurl}-->"><img src="<!--{$login.info.headimgurl}-->" /></a></span></dt>
      <dd>
        <h3><!--{$login.info.username}--></h3>
        <div class="rz">
          <span class="span_1<!--{if $login.info.idrz == '1'}--> current<!--{/if}-->"></span>
          <span class="span_2<!--{if $login.info.mobilerz == '1'}--> current<!--{/if}-->"></span>
          <span class="span_4<!--{if $login.info.emailrz == '1'}--> current<!--{/if}-->"></span>
          <span class="span_3<!--{if $login.info.qqrz == '1'}--> current<!--{/if}-->"></span>
          <div class="clear"></div>
        </div>
        <label><a href="<!--{$urlpath}-->index.php?m=user">进入会员中心</a></label>
      </dd>
      <div class="clear"></div>
    </dl>
  </div>
  <!--{else}-->
  <div class="dynamic_nologin">
    <dl>
      <dt><span><img src="<!--{$skinpath}-->images/head.png" /></span></dt>
      <dd>
        <p>您还没登录</p>
        <p class="p_1">
          <label class="label_1"><a href="javascript:;" f="pop_jdlogin">登录</a></label>
          <label><a href="<!--{routeurl module='passport' action='reg'}-->">注册</a></label>
        </p>
      </dd>
      <div class="clear"></div>
    </dl>
  </div>
  <!--{/if}-->
  <div class="oe_enter">
    <h3 style="display:none;">快捷操作</h3>
	<!--{if $login.status == '1'}-->
	<!--{assign var="my_message" value=<!--{countdata type='user' mod='message' where="v.touid='<!--{$login.info.userid}-->' AND v.flag='1' AND v.readstatus='0' AND v.todel='0'"}-->}--> 
    <!--{assign var="my_privatephoto" value=<!--{countdata type='user' mod='myphoto' where="v.userid='<!--{$login.info.userid}-->' AND v.private='1'"}-->}--> 
    <ul>
	  <li>
        <i class="icon_1"></i>
	    <a href="<!--{$urlpath}-->index.php?m=user&c=msgcontact">私信</a>
		<!--{if $my_message > 0}-->
		<em><!--{$my_message}--></em> 
		<!--{/if}-->
	  </li>
      <li>
        <i class="icon_2"></i>
	    <a href="<!--{$urlpath}-->index.php?m=user&c=photo&s_type=1">私密照</a>
		<!--{if $my_privatephoto > 0}-->
		<em><!--{$my_privatephoto}--></em> 
		<!--{/if}-->
	  </li>
      <li>
        <i class="icon_3"></i>
	    <a href="<!--{$urlpath}-->index.php?m=user&c=vip">升级会员</a>
		<b>您现在是：<!--{$login.group.groupname}--></b>
	  </li>
	  <!--{if $c == "marry"}-->
      <!--{assign var="my_marry" value=<!--{countdata type='user' mod='marry' where="v.userid='<!--{$login.info.userid}-->'"}-->}--> 
      <!--{assign var="my_marrybm" value=<!--{countdata type='user' mod='marrybm' where="v.bmuid='<!--{$login.info.userid}-->'"}-->}-->
      <li>
        <i class="icon_4"></i>
	    <a href="<!--{$urlpath}-->index.php?m=user&c=marry">我发布的征婚</a> 
        <!--{if $my_marry > 0}--> 
        <em><!--{$my_marry}--></em> 
        <!--{/if}--> 
      </li>
      <li>
        <i class="icon_5"></i>
	    <a href="<!--{$urlpath}-->index.php?m=user&c=marrybm">我报名的征婚</a> 
        <!--{if $my_marrybm > 0}--> 
        <em><!--{$my_marrybm}--></em> 
        <!--{/if}--> 
      </li>
	  <!--{/if}-->

	  <!--{if $c == "dynamic"}-->
	  <!--{assign var="my_dynamic" value=<!--{countdata type='system' mod='dynamic' where="v.userid='<!--{$login.info.userid}-->' AND v.flag='1'"}-->}-->
	  <li>
        <i class="icon_5"></i>
	    <a href="<!--{routeurl module='dynamic' items="s_type=1"}-->">我发布的动态</a> 
        <!--{if $my_dynamic > 0}--> 
        <em><!--{$my_dynamic}--></em> 
        <!--{/if}--> 
      </li>
	  <!--{/if}-->
    </ul>
	<!--{else}-->
    <ul>
	  <li>
        <i class="icon_1"></i>
	    <a href="<!--{$urlpath}-->index.php?m=user&c=msgcontact">私信</a>
	  </li>
      <li>
        <i class="icon_2"></i>
	    <a href="<!--{$urlpath}-->index.php?m=user&c=photo&s_type=1">私密照</a>
	  </li>
      <li>
        <i class="icon_3"></i>
	    <a href="<!--{$urlpath}-->index.php?m=user&c=vip">升级会员</a>
	  </li>
      <li>
        <i class="icon_4"></i>
	    <a href="<!--{$urlpath}-->index.php?m=user&c=marry">我发布的征婚</a> 
      </li>
      <li>
        <i class="icon_5"></i>
	    <a href="<!--{$urlpath}-->index.php?m=user&c=marrybm">我报名的征婚</a> 
      </li>
    </ul>
	<!--{/if}-->

    <div class="oe_lianxihongnian">
      <dl title="点击联系">
        <dt><span></span></dt>
        <dd>
          <h4>委托红娘</h4>
          <p><!--{$config.sitetel}--></p>
        </dd>
      </dl>
    </div>
  </div>
  <div class="oe_party_contact" style="display:none;">
    <h3>联系我们</h3>
    <div class="bd">
      <dl>
        <dt><i class="ico_1"></i>电话</dt>
        <dd><!--{$config.sitetel}--></dd>
      </dl>
      <dl>
        <dt><i class="ico_2"></i>邮箱</dt>
        <dd><!--{$config.siteemail}--></dd>
      </dl>
      <dl>
        <dt><i class="ico_3"></i>地址</dt>
        <dd><!--{$config.siteaddress}--></dd>
      </dl>
    </div>
  </div>
</div>

<script type="text/javascript">
$(function(){
	$(window).scroll(function(){
		$menujuli = $(this).scrollTop();
		if ($menujuli > 152) {
			if (!$("#user_right_box").hasClass("current")) {
				$("#user_right_box").addClass("current");
			}
		}
		else {
			if ($("#user_right_box").hasClass("current")) {
				$("#user_right_box").removeClass("current");
			}
		}
	});
});
</script>

